<template>
	<div>
		<el-row class="bg-top" v-for="(item,index) in systemList" :key="index">
			<el-col :span="24">
				<div class="system">
					<div class="titleText">系统故障</div>
					<div class="titleText titleText1">{{item.name}}</div>
					<div class="systemFailure" style="display: flex;flex-flow: nowrap;align-items: center;">
						<div class="systemFailure1">
							<!-- <div class="systemFailure-list2">
								<div :class="item.upLink.ibp==1?'dot1':item.upLink.ibp==0?'dot':'dot0'"></div>
								<span>IBP有效按钮故障</span>
							</div> -->
							<!-- <div class="systemFailure-list2">
								<div :class="item.upLink.ibp_control==1?'dot1':item.upLink.ibp_control==0?'dot':'dot0'"></div>
								<span>IBP盒有效信号故障</span>
							</div>
							<div class="systemFailure-list2">
								<div :class="item.downLink.ibp_control==1?'dot1':item.downLink.ibp_control==0?'dot':'dot0'"></div>
								<span>IBP盒控制信号故障</span>
							</div> -->
							<div class="systemFailure-list2" v-if="item.name=='A系'">
								<div :class="item.RecordBoardStatus==1?'dot1':item.RecordBoardStatus==0?'dot':'dot0'"></div>
								<span>记录板A故障</span>
							</div>
							<div class="systemFailure-list2" v-if="item.name=='B系'">
								<div :class="item.RecordBoardStatus==1?'dot1':item.RecordBoardStatus==0?'dot':'dot0'"></div>
								<span>记录板B故障</span>
							</div>
							<!-- <div class="systemFailure-list2">
								<div :class="item.downLink.ibp==1?'dot1':item.downLink.ibp==0?'dot':'dot0'"></div>
								<span>面板测试开关按钮故障</span>
							</div> -->
						</div>
						<div class="systemFailureDivAll">
							<div class="systemFailureDiv">
									<div class="systemFailureDivSpan">
										上行
									</div>
									<div class="systemFailure2" style="">
										<!-- <el-col :span="4" class="systemFailure-list2" >
											<div :class="item.upLink.sigComFaultAlarm==1?'dot1':item.upLink.sigComFaultAlarm==0?'dot':'dot0'"></div>
											<span>信号系统网络通信故障</span>
										</el-col> -->
										<el-col :span="4"  class="systemFailure-list2">
											<div :class="item.upLink.TIASStatus==1?'dot1':item.upLink.TIASStatus==0?'dot':'dot0'"></div>
											<span>综合监控网络通讯故障</span>
										</el-col>
										<el-col :span="4"  class="systemFailure-list2">
											<div :class="item.upLink.upCANStatus==1?'dot1':item.upLink.upCANStatus==0?'dot':'dot0'"></div>
											<span>第一路CAN通讯故障</span>
										</el-col>
										<el-col :span="4"  class="systemFailure-list2">
											<div :class="item.upLink.upCANStatus1==1?'dot1':item.upLink.upCANStatus1==0?'dot':'dot0'">
											</div>
											<span>第二路CAN通讯故障</span>
										</el-col>
										<el-col :span="4" class="systemFailure-list2">
											<div :class="item.upLink.safeInputFaultWarning==1?'dot1':item.upLink.safeInputFaultWarning==0?'dot':'dot0'"></div>
											<span>输出板故障</span>
										</el-col>
										<!-- <el-col :span="4" class="systemFailure-list2">
											<div :class="item.upLink.all6BDoorOpened==1?'dot1':item.upLink.all6BDoorOpened==0?'dot':'dot0'"></div>
											<span>6B门全开</span>
										</el-col>
										<el-col :span="4" class="systemFailure-list2">
											<div :class="item.upLink.all8BDoorOpened==1?'dot1':item.upLink.all8BDoorOpened==0?'dot':'dot0'"></div>
											<span>8B门全开</span>
										</el-col> -->
										<el-col :span="4" class="systemFailure-list2">
											<div :class="item.upLink.open6BDoorFault==1?'dot1':item.upLink.open6BDoorFault==0?'dot':'dot0'"></div>
											<span>6B开门故障</span>
										</el-col>
										<el-col :span="4" class="systemFailure-list2">
											<div :class="item.upLink.open8BDoorFault==1?'dot1':item.upLink.open8BDoorFault==0?'dot':'dot0'"></div>
											<span>8B开门故障</span>
										</el-col>
										<!-- <el-col :span="4" class="systemFailure-list2">
											<div :class="item.upLink.allDoorLocked==1?'dot1':item.upLink.allDoorLocked==0?'dot':'dot0'"></div>
											<span>门全关闭锁紧</span>
										</el-col> -->
										<el-col :span="4" class="systemFailure-list2">
											<div :class="item.upLink.GapDetectionConnectionStatus==1?'dot1':item.upLink.GapDetectionConnectionStatus==0?'dot':'dot0'"></div>
											<span>间隙探测连接状态点</span>
										</el-col>
										<el-col :span="4" class="systemFailure-list2">
											<div :class="item.upLink.backControlModuleFaultAlarm==1?'dot1':item.upLink.backControlModuleFaultAlarm==0?'dot':'dot0'"></div>
											<span>后备控制模块故障</span>
										</el-col>
										<!-- <el-col :span="4" class="systemFailure-list2">
											<div :class="item.upLink.ibp4==1?'dot1':item.upLink.ibp4==0?'dot':'dot0'"></div>
											<span>IBP-4A 开门按钮故障</span>
										</el-col>
										<el-col :span="4"  class="systemFailure-list2">
											<div :class="item.upLink.ibp8==1?'dot1':item.upLink.ibp8==0?'dot':'dot0'"></div>
											<span>IBP-8A开门按钮故障</span>
										</el-col>
										<el-col :span="4"  class="systemFailure-list2">
											<div :class="item.upLink.ibpSmokeDoor==1?'dot1':item.upLink.ibpSmokeDoor==0?'dot':'dot0'">
											</div>
											<span>IBP-开排烟门按钮故障</span>
										</el-col>
										<el-col :span="4"  class="systemFailure-list2">
											<div :class="item.upLink.psl1==1?'dot1':item.upLink.psl1==0?'dot':'dot0'"></div>
											<span>PSL1-互锁解除按钮故障</span>
										</el-col>
										<el-col :span="4" class="systemFailure-list2">
											<div :class="item.upLink.psl1Allow4a==1?'dot1':item.upLink.psl1Allow4a==0?'dot':'dot0'"></div>
											<span>PSL1-4A允许按钮故障</span>
										</el-col>
										<el-col :span="4" class="systemFailure-list2">
											<div :class="item.upLink.psl1Allow8a==1?'dot1':item.upLink.psl1Allow8a==0?'dot':'dot0'"></div>
											<span>PSL1-8A允许按钮故障</span>
										</el-col>
										<el-col :span="4"  class="systemFailure-list2">
											<div :class="item.upLink.psl1OpenDoor4a==1?'dot1':item.upLink.psl1OpenDoor4a==0?'dot':'dot0'">
											</div>
											<span>PSL1-4A开门按钮故障</span>
										</el-col>
										<el-col :span="4"  class="systemFailure-list2">
											<div :class="item.upLink.psl1OpenDoor8a==1?'dot1':item.upLink.psl1OpenDoor8a==0?'dot':'dot0'">
											</div>
											<span>PSL1-8A开门按钮故障</span>
										</el-col>
										<el-col :span="4"  class="systemFailure-list2">
											<div :class="item.upLink.psl1CloseDoor===1?'dot1':item.upLink.psl1CloseDoor==0?'dot':'dot0'">
											</div>
											<span>PSL1-关门按钮故障</span>
										</el-col>
										<el-col :span="4" class="systemFailure-list2">
											<div :class="item.upLink.psl2==1?'dot1':item.upLink.psl2==0?'dot':'dot0'"></div>
											<span>PSL2-互锁解除按钮故障</span>
										</el-col>
										<el-col :span="4"  class="systemFailure-list2">
											<div :class="item.upLink.psl2Allow4a==1?'dot1':item.upLink.psl2Allow4a==0?'dot':'dot0'"></div>
											<span>PSL2-4A允许按钮故障</span>
										</el-col>
										<el-col :span="4"  class="systemFailure-list2">
											<div :class="item.upLink.psl2Allow8a==1?'dot1':item.upLink.psl2Allow8a==0?'dot':'dot0'"></div>
											<span>PSL2-8A允许按钮故障</span>
										</el-col>
										<el-col :span="4"  class="systemFailure-list2">
											<div :class="item.upLink.psl2OpenDoor4a==1?'dot1':item.upLink.psl2OpenDoor4a==0?'dot':'dot0'">
											</div>
											<span>PSL2-4A开门按钮故障</span>
										</el-col>
										<el-col :span="4"   class="systemFailure-list2">
											<div :class="item.upLink.psl2OpenDoor8a==1?'dot1':item.upLink.psl2OpenDoor8a==0?'dot':'dot0'">
											</div>
											<span>PSL2-8A开门按钮故障</span>
										</el-col>
										<el-col :span="4" class="systemFailure-list2">
											<div :class="item.upLink.psl2CloseDoor==1?'dot1':item.upLink.psl2CloseDoor==0?'dot':'dot0'">
											</div>
											<span>PSL2-关门按钮故障</span>
										</el-col> -->
										<!-- <el-col :span="4" class="systemFailure-list2">
											<div :class="item.upLink.ibp_relay==1?'dot1':item.upLink.ibp_relay==0?'dot':'dot0'">
											</div>
											<span>IBP盒继电器故障</span>
										</el-col> -->
									</div>
								</div>
								
								<div class="systemFailureDiv">
									<div class="systemFailureDivSpan">
										下行
									</div>
									<div class="systemFailure2" style="">
										<!-- <el-col :span="4" class="systemFailure-list2">
											<div :class="item.downLink.sigComFaultAlarm==1?'dot1':item.downLink.sigComFaultAlarm==0?'dot':'dot0'">
											</div>
											<span>信号系统网络通信故障</span>
										</el-col> -->
										<el-col :span="4"  class="systemFailure-list2">
											<div :class="item.downLink.TIASStatus==1?'dot1':item.downLink.TIASStatus==0?'dot':'dot0'">
											</div>
											<span>综合监控网络通讯故障</span>
										</el-col>
										<el-col :span="4"  class="systemFailure-list2">
											<div :class="item.downLink.upCANStatus==1?'dot1':item.downLink.upCANStatus==0?'dot':'dot0'">
											</div>
											<span>第一路CAN通讯故障</span>
										</el-col>
										<el-col :span="4"  class="systemFailure-list2">
											<div :class="item.downLink.upCANStatus1==1?'dot1':item.downLink.upCANStatus1==0?'dot':'dot0'">
											</div>
											<span>第二路CAN通讯故障</span>
										</el-col>
										<el-col :span="4" class="systemFailure-list2">
											<div :class="item.downLink.safeInputFaultWarning==1?'dot1':item.downLink.safeInputFaultWarning==0?'dot':'dot0'">
											</div>
											<span>输出板故障</span>
										</el-col>
										<!-- <el-col :span="4" class="systemFailure-list2">
											<div :class="item.downLink.all6BDoorOpened==1?'dot1':item.downLink.all6BDoorOpened==0?'dot':'dot0'"></div>
											<span>6B门全开</span>
										</el-col>
										<el-col :span="4" class="systemFailure-list2">
											<div :class="item.downLink.all8BDoorOpened==1?'dot1':item.downLink.all8BDoorOpened==0?'dot':'dot0'"></div>
											<span>8B门全开</span>
										</el-col> -->
										<el-col :span="4" class="systemFailure-list2">
											<div :class="item.downLink.open6BDoorFault==1?'dot1':item.downLink.open6BDoorFault==0?'dot':'dot0'"></div>
											<span>6B开门故障</span>
										</el-col>
										<el-col :span="4" class="systemFailure-list2">
											<div :class="item.downLink.open8BDoorFault==1?'dot1':item.downLink.open8BDoorFault==0?'dot':'dot0'"></div>
											<span>8B开门故障</span>
										</el-col>
										<!-- <el-col :span="4" class="systemFailure-list2">
											<div :class="item.downLink.allDoorLocked==1?'dot1':item.downLink.allDoorLocked==0?'dot':'dot0'"></div>
											<span>门全关闭锁紧</span>
										</el-col> -->
										<el-col :span="4" class="systemFailure-list2">
											<div :class="item.downLink.GapDetectionConnectionStatus==1?'dot1':item.downLink.GapDetectionConnectionStatus==0?'dot':'dot0'"></div>
											<span>间隙探测连接状态点</span>
										</el-col>
										<!-- <el-col :span="4" class="systemFailure-list2">
											<div :class="item.downLink.ibp4==1?'dot1':item.downLink.ibp4==0?'dot':'dot0'"></div>
											<span>IBP-4A 开门按钮故障</span>
										</el-col>
										<el-col :span="4"  class="systemFailure-list2">
											<div :class="item.downLink.ibp8==1?'dot1':item.downLink.ibp8==0?'dot':'dot0'"></div>
											<span>IBP-8A开门按钮故障</span>
										</el-col>
										<el-col :span="4"  class="systemFailure-list2">
											<div :class="item.downLink.ibpSmokeDoor==1?'dot1':item.downLink.ibpSmokeDoor==0?'dot':'dot0'">
											</div>
											<span>IBP-开排烟门按钮故障</span>
										</el-col>
										<el-col :span="4"  class="systemFailure-list2">
											<div :class="item.downLink.psl1==1?'dot1':item.downLink.psl1==0?'dot':'dot0'"></div>
											<span>PSL1-互锁解除按钮故障</span>
										</el-col>
										<el-col :span="4" class="systemFailure-list2">
											<div :class="item.downLink.psl1Allow4a==1?'dot1':item.downLink.psl1Allow4a==0?'dot':'dot0'">
											</div>
											<span>PSL1-4A允许按钮故障</span>
										</el-col>
										<el-col :span="4" class="systemFailure-list2">
											<div :class="item.downLink.psl1Allow8a==1?'dot1':item.downLink.psl1Allow8a==0?'dot':'dot0'">
											</div>
											<span>PSL1-8A允许按钮故障</span>
										</el-col>
										<el-col :span="4"  class="systemFailure-list2">
											<div
												:class="item.downLink.psl1OpenDoor4a==1?'dot1':item.downLink.psl1OpenDoor4a==0?'dot':'dot0'">
											</div>
											<span>PSL1-4A开门按钮故障</span>
										</el-col>
										<el-col :span="4"  class="systemFailure-list2">
											<div
												:class="item.downLink.psl1OpenDoor8a==1?'dot1':item.downLink.psl1OpenDoor8a==0?'dot':'dot0'">
											</div>
											<span>PSL1-8A开门按钮故障</span>
										</el-col>
										<el-col :span="4"  class="systemFailure-list2">
											<div
												:class="item.downLink.psl1CloseDoor===1?'dot1':item.downLink.psl1CloseDoor==0?'dot':'dot0'">
											</div>
											<span>PSL1-关门按钮故障</span>
										</el-col>
										<el-col :span="4" class="systemFailure-list2">
											<div :class="item.downLink.psl2==1?'dot1':item.downLink.psl2==0?'dot':'dot0'"></div>
											<span>PSL2-互锁解除按钮故障</span>
										</el-col>
										<el-col :span="4" class="systemFailure-list2">
											<div :class="item.downLink.psl2Allow4a==1?'dot1':item.downLink.psl2Allow4a==0?'dot':'dot0'">
											</div>
											<span>PSL2-4A允许按钮故障</span>
										</el-col>
										<el-col :span="4"  class="systemFailure-list2">
											<div :class="item.downLink.psl2Allow8a==1?'dot1':item.downLink.psl2Allow8a==0?'dot':'dot0'">
											</div>
											<span>PSL2-8A允许按钮故障</span>
										</el-col>
										<el-col :span="4"  class="systemFailure-list2">
											<div
												:class="item.downLink.psl2OpenDoor4a==1?'dot1':item.downLink.psl2OpenDoor4a==0?'dot':'dot0'">
											</div>
											<span>PSL2-4A开门按钮故障</span>
										</el-col>
										<el-col :span="4"  class="systemFailure-list2">
											<div
												:class="item.downLink.psl2OpenDoor8a==1?'dot1':item.downLink.psl2OpenDoor8a==0?'dot':'dot0'">
											</div>
											<span>PSL2-8A开门按钮故障</span>
										</el-col>
										<el-col :span="4" class="systemFailure-list2">
											<div
												:class="item.downLink.psl2CloseDoor==1?'dot1':item.downLink.psl2CloseDoor==0?'dot':'dot0'">
											</div>
											<span>PSL2-关门按钮故障</span>
										</el-col> -->
										<el-col :span="4" class="systemFailure-list2">
											<div :class="item.downLink.ibp_relay==1?'dot1':item.downLink.ibp_relay==0?'dot':'dot0'">
											</div>
											<span>IBP盒继电器故障</span>
										</el-col>
										<el-col :span="4" class="systemFailure-list2">
											<div :class="item.downLink.backControlModuleFaultAlarm==1?'dot1':item.downLink.backControlModuleFaultAlarm==0?'dot':'dot0'"></div>
											<span>后备控制模块故障</span>
										</el-col>
									</div>
								</div>
							
						</div>
						</div>
				</div>
			</el-col>
		</el-row>
	</div>
</template>

<script>
	export default {
		inject: ["reload"],
		data() {
			return {
				tipStatus: false,
				msg: '',
				systemList:[
					{
						name:'A系',
						RecordBoardStatus:-1,
						upLink: {
							sigComFaultAlarm: -1,
							TIASStatus: -1,
							upCANStatus: -1,
							upCANStatus1: -1,
							safeInputFaultWarning:-1,
							GapDetectionConnectionStatus:-1,
							all6BDoorOpened:-1,
							all8BDoorOpened:-1,
							allDoorLocked:-1,
							open6BDoorFault:-1,
							open8BDoorFault:-1,
							backControlModuleFaultAlarm:-1
						},
						downLink: {
							sigComFaultAlarm: -1,
							TIASStatus: -1,
							upCANStatus: -1,
							upCANStatus1: -1,
							safeInputFaultWarning:-1,
							GapDetectionConnectionStatus:-1,
							all6BDoorOpened:-1,
							all8BDoorOpened:-1,
							allDoorLocked:-1,
							open6BDoorFault:-1,
							open8BDoorFault:-1,
							backControlModuleFaultAlarm:-1
						}
					},
					{
						name:'B系',
						RecordBoardStatus:-1,
						upLink: {
							sigComFaultAlarm: -1,
							TIASStatus: -1,
							upCANStatus: -1,
							upCANStatus1: -1,
							safeInputFaultWarning:-1,
							GapDetectionConnectionStatus:-1,
							all6BDoorOpened:-1,
							all8BDoorOpened:-1,
							allDoorLocked:-1,
							open6BDoorFault:-1,
							open8BDoorFault:-1,
							backControlModuleFaultAlarm:-1
						},
						downLink: {
							sigComFaultAlarm: -1,
							TIASStatus: -1,
							upCANStatus: -1,
							upCANStatus1: -1,
							safeInputFaultWarning:-1,
							GapDetectionConnectionStatus:-1,
							all6BDoorOpened:-1,
							all8BDoorOpened:-1,
							allDoorLocked:-1,
							open6BDoorFault:-1,
							open8BDoorFault:-1,
							backControlModuleFaultAlarm:-1
						}
					}
				],

			}
		},
		mounted() {
			window.addEventListener('onmessageWS', this.getSocketData)
		},
		destroyed() {
			window.removeEventListener('onmessageWS', this.getSocketData)
		},
		activated() {
			this.init()
		},
		beforeDestroy() {
			window.clearTimeout()
		},
		methods: {
			getSocketData(res) {
				if (res.detail.data) {
					this.init()
				}
			},
			init() {
				this.$nextTick(() => {
					this.handleMsg()
				})

			},
			//接收websocket数据
			handleMsg() {
				setTimeout(() => {
					this.$globalWebSocket.ws.send("psc");
					this.$globalWebSocket.ws.onmessage = this.getMessage
				}, 200)
			},
			//获取websocket数据
			getMessage(e) {
				var message = JSON.parse(e.data)
				this.tipStatus = false
				if (message.taskStatus == 3) {
					this.taskStatus = 3
					//都断开A B 同时宕机
					this.tipStatus = true
					this.msg = 'PEDC命令断开,正在重新连接'
					this.clearData(0)
					this.clearData(1)
				} else if(message.taskStatus == 1){
					// A宕机
					this.clearData(0)
					this.systemList[1].RecordBoardStatus = message.RecordBoardStatus
					this.systemList[1].upLink.sigComFaultAlarm = message.upLink.sysPscCenterControlPanel.sigComFaultAlarm
					this.systemList[1].upLink.TIASStatus = message.upLink.sysPscCenterControlPanel.tiasNetFault
					this.systemList[1].upLink.upCANStatus = message.upLink.sysPscCenterControlPanel.bus1FaultAlarm
					this.systemList[1].upLink.upCANStatus1 = message.upLink.sysPscCenterControlPanel.bus2FaultAlarm
					this.systemList[1].upLink.safeInputFaultWarning = message.upLink.sysPscCenterControlPanel.safeInputFaultWarning
					this.systemList[1].upLink.GapDetectionConnectionStatus = message.upLink.sysPscCenterControlPanel.GapDetectionConnectionStatus
					this.systemList[1].upLink.all6BDoorOpened = message.upLink.sysPscCenterControlPanel.all6BDoorOpened
					this.systemList[1].upLink.all8BDoorOpened = message.upLink.sysPscCenterControlPanel.all8BDoorOpened
					this.systemList[1].upLink.allDoorLocked = message.upLink.sysPscCenterControlPanel.allDoorLocked
					this.systemList[1].upLink.open6BDoorFault = message.upLink.sysPscCenterControlPanel.open6BDoorFault
					this.systemList[1].upLink.open8BDoorFault = message.upLink.sysPscCenterControlPanel.open8BDoorFault
					this.systemList[1].upLink.backControlModuleFaultAlarm = message.upLink.sysPscCenterControlPanel.backControlModuleFaultAlarm
					this.systemList[1].downLink.sigComFaultAlarm = message.downLink.sysPscCenterControlPanel.sigComFaultAlarm
					this.systemList[1].downLink.TIASStatus = message.downLink.sysPscCenterControlPanel.TIASStatus
					this.systemList[1].downLink.upCANStatus = message.downLink.sysPscCenterControlPanel.upCANStatus
					this.systemList[1].downLink.upCANStatus1 = message.downLink.sysPscCenterControlPanel.bus2FaultAlarm
					this.systemList[1].downLink.safeInputFaultWarning = message.downLink.sysPscCenterControlPanel.safeInputFaultWarning
					this.systemList[1].downLink.GapDetectionConnectionStatus = message.downLink.sysPscCenterControlPanel.GapDetectionConnectionStatus
					this.systemList[1].downLink.all6BDoorOpened = message.downLink.sysPscCenterControlPanel.all6BDoorOpened
					this.systemList[1].downLink.all8BDoorOpened = message.downLink.sysPscCenterControlPanel.all8BDoorOpened
					this.systemList[1].downLink.allDoorLocked = message.downLink.sysPscCenterControlPanel.allDoorLocked
					this.systemList[1].downLink.open6BDoorFault = message.downLink.sysPscCenterControlPanel.open6BDoorFault
					this.systemList[1].downLink.open8BDoorFault = message.downLink.sysPscCenterControlPanel.open8BDoorFault
					this.systemList[1].downLink.backControlModuleFaultAlarm = message.downLink.sysPscCenterControlPanel.backControlModuleFaultAlarm
				}else if(message.taskStatus == 2){
					// B宕机
					this.clearData(1)
					this.systemList[0].RecordBoardStatus = message.RecordBoardStatus
					this.systemList[0].upLink.sigComFaultAlarm = message.upLink.sysPscCenterControlPanel.sigComFaultAlarm
					this.systemList[0].upLink.TIASStatus = message.upLink.sysPscCenterControlPanel.tiasNetFault
					this.systemList[0].upLink.upCANStatus = message.upLink.sysPscCenterControlPanel.bus1FaultAlarm
					this.systemList[0].upLink.upCANStatus1 = message.upLink.sysPscCenterControlPanel.bus2FaultAlarm
					this.systemList[0].upLink.safeInputFaultWarning = message.upLink.sysPscCenterControlPanel.safeInputFaultWarning
					this.systemList[0].upLink.GapDetectionConnectionStatus = message.upLink.sysPscCenterControlPanel.GapDetectionConnectionStatus
					this.systemList[0].upLink.all6BDoorOpened = message.upLink.sysPscCenterControlPanel.all6BDoorOpened
					this.systemList[0].upLink.all8BDoorOpened = message.upLink.sysPscCenterControlPanel.all8BDoorOpened
					this.systemList[0].upLink.allDoorLocked = message.upLink.sysPscCenterControlPanel.allDoorLocked
					this.systemList[0].upLink.open6BDoorFault = message.upLink.sysPscCenterControlPanel.open6BDoorFault
					this.systemList[0].upLink.open8BDoorFault = message.upLink.sysPscCenterControlPanel.open8BDoorFault
					this.systemList[0].upLink.backControlModuleFaultAlarm = message.upLink.sysPscCenterControlPanel.backControlModuleFaultAlarm
					this.systemList[0].downLink.sigComFaultAlarm = message.downLink.sysPscCenterControlPanel.sigComFaultAlarm
					this.systemList[0].downLink.TIASStatus = message.downLink.sysPscCenterControlPanel.tiasNetFault
					this.systemList[0].downLink.upCANStatus = message.downLink.sysPscCenterControlPanel.bus1FaultAlarm
					this.systemList[0].downLink.upCANStatus1 = message.downLink.sysPscCenterControlPanel.bus2FaultAlarm
					this.systemList[0].downLink.safeInputFaultWarning = message.downLink.sysPscCenterControlPanel.safeInputFaultWarning
					this.systemList[0].downLink.GapDetectionConnectionStatus = message.downLink.sysPscCenterControlPanel.GapDetectionConnectionStatus
					this.systemList[0].downLink.all6BDoorOpened = message.downLink.sysPscCenterControlPanel.all6BDoorOpened
					this.systemList[0].downLink.all8BDoorOpened = message.downLink.sysPscCenterControlPanel.all8BDoorOpened
					this.systemList[0].downLink.allDoorLocked = message.downLink.sysPscCenterControlPanel.allDoorLocked
					this.systemList[0].downLink.open6BDoorFault = message.downLink.sysPscCenterControlPanel.open6BDoorFault
					this.systemList[0].downLink.open8BDoorFault = message.downLink.sysPscCenterControlPanel.open8BDoorFault
					this.systemList[0].downLink.backControlModuleFaultAlarm = message.downLink.sysPscCenterControlPanel.backControlModuleFaultAlarm
				}else if(message.taskStatus == 0){
					this.taskStatus = 0
					//如果A,B系都正常，应该显示谁的故障
					if(message.ab=='A'){
						this.systemList[0].RecordBoardStatus = message.RecordBoardStatus
						this.systemList[0].upLink.sigComFaultAlarm = message.upLink.sysPscCenterControlPanel.sigComFaultAlarm
						this.systemList[0].upLink.TIASStatus = message.upLink.sysPscCenterControlPanel.tiasNetFault
						this.systemList[0].upLink.upCANStatus = message.upLink.sysPscCenterControlPanel.bus1FaultAlarm
						this.systemList[0].upLink.upCANStatus1 = message.upLink.sysPscCenterControlPanel.bus2FaultAlarm
						this.systemList[0].upLink.safeInputFaultWarning = message.upLink.sysPscCenterControlPanel.safeInputFaultWarning
						this.systemList[0].upLink.GapDetectionConnectionStatus = message.upLink.sysPscCenterControlPanel.GapDetectionConnectionStatus
						this.systemList[0].upLink.all6BDoorOpened = message.upLink.sysPscCenterControlPanel.all6BDoorOpened
						this.systemList[0].upLink.all8BDoorOpened = message.upLink.sysPscCenterControlPanel.all8BDoorOpened
						this.systemList[0].upLink.allDoorLocked = message.upLink.sysPscCenterControlPanel.allDoorLocked
						this.systemList[0].upLink.open6BDoorFault = message.upLink.sysPscCenterControlPanel.open6BDoorFault
						this.systemList[0].upLink.open8BDoorFault = message.upLink.sysPscCenterControlPanel.open8BDoorFault
						this.systemList[0].upLink.backControlModuleFaultAlarm = message.upLink.sysPscCenterControlPanel.backControlModuleFaultAlarm
						this.systemList[0].downLink.sigComFaultAlarm = message.downLink.sysPscCenterControlPanel.sigComFaultAlarm
						this.systemList[0].downLink.TIASStatus = message.downLink.sysPscCenterControlPanel.tiasNetFault
						this.systemList[0].downLink.upCANStatus = message.downLink.sysPscCenterControlPanel.bus1FaultAlarm
						this.systemList[0].downLink.upCANStatus1 = message.downLink.sysPscCenterControlPanel.bus2FaultAlarm
						this.systemList[0].downLink.safeInputFaultWarning = message.downLink.sysPscCenterControlPanel.safeInputFaultWarning
						this.systemList[0].downLink.GapDetectionConnectionStatus = message.downLink.sysPscCenterControlPanel.GapDetectionConnectionStatus
						this.systemList[0].downLink.all6BDoorOpened = message.downLink.sysPscCenterControlPanel.all6BDoorOpened
						this.systemList[0].downLink.all8BDoorOpened = message.downLink.sysPscCenterControlPanel.all8BDoorOpened
						this.systemList[0].downLink.allDoorLocked = message.downLink.sysPscCenterControlPanel.allDoorLocked
						this.systemList[0].downLink.open6BDoorFault = message.downLink.sysPscCenterControlPanel.open6BDoorFault
						this.systemList[0].downLink.open8BDoorFault = message.downLink.sysPscCenterControlPanel.open8BDoorFault
						this.systemList[0].downLink.backControlModuleFaultAlarm = message.downLink.sysPscCenterControlPanel.backControlModuleFaultAlarm
					}else if(message.ab=='B'){
						this.systemList[1].RecordBoardStatus = message.RecordBoardStatus
						this.systemList[1].upLink.sigComFaultAlarm = message.upLink.sysPscCenterControlPanel.sigComFaultAlarm
						this.systemList[1].upLink.TIASStatus = message.upLink.sysPscCenterControlPanel.tiasNetFault
						this.systemList[1].upLink.upCANStatus = message.upLink.sysPscCenterControlPanel.bus1FaultAlarm
						this.systemList[1].upLink.upCANStatus1 = message.upLink.sysPscCenterControlPanel.bus2FaultAlarm
						this.systemList[1].upLink.safeInputFaultWarning = message.upLink.sysPscCenterControlPanel.safeInputFaultWarning
						this.systemList[1].upLink.GapDetectionConnectionStatus = message.upLink.sysPscCenterControlPanel.GapDetectionConnectionStatus
						this.systemList[1].upLink.all6BDoorOpened = message.upLink.sysPscCenterControlPanel.all6BDoorOpened
						this.systemList[1].upLink.all8BDoorOpened = message.upLink.sysPscCenterControlPanel.all8BDoorOpened
						this.systemList[1].upLink.allDoorLocked = message.upLink.sysPscCenterControlPanel.allDoorLocked
						this.systemList[1].upLink.open6BDoorFault = message.upLink.sysPscCenterControlPanel.open6BDoorFault
						this.systemList[1].upLink.open8BDoorFault = message.upLink.sysPscCenterControlPanel.open8BDoorFault
						this.systemList[1].upLink.backControlModuleFaultAlarm = message.upLink.sysPscCenterControlPanel.backControlModuleFaultAlarm
						this.systemList[1].downLink.sigComFaultAlarm = message.downLink.sysPscCenterControlPanel.sigComFaultAlarm
						this.systemList[1].downLink.TIASStatus = message.downLink.sysPscCenterControlPanel.tiasNetFault
						this.systemList[1].downLink.upCANStatus = message.downLink.sysPscCenterControlPanel.bus1FaultAlarm
						this.systemList[1].downLink.upCANStatus1 = message.downLink.sysPscCenterControlPanel.bus2FaultAlarm
						this.systemList[1].downLink.safeInputFaultWarning = message.downLink.sysPscCenterControlPanel.safeInputFaultWarning
						this.systemList[1].downLink.GapDetectionConnectionStatus = message.downLink.sysPscCenterControlPanel.GapDetectionConnectionStatus
						this.systemList[1].downLink.all6BDoorOpened = message.downLink.sysPscCenterControlPanel.all6BDoorOpened
						this.systemList[1].downLink.all8BDoorOpened = message.downLink.sysPscCenterControlPanel.all8BDoorOpened
						this.systemList[1].downLink.allDoorLocked = message.downLink.sysPscCenterControlPanel.allDoorLocked
						this.systemList[1].downLink.open6BDoorFault = message.downLink.sysPscCenterControlPanel.open6BDoorFault
						this.systemList[1].downLink.open8BDoorFault = message.downLink.sysPscCenterControlPanel.open8BDoorFault
						this.systemList[1].downLink.backControlModuleFaultAlarm = message.downLink.sysPscCenterControlPanel.backControlModuleFaultAlarm
					}
				}
			},
			clearData(index){
				this.systemList[index].RecordBoardStatus = -1
				this.systemList[index].upLink = {
					sigComFaultAlarm: -1,
					TIASStatus: -1,
					upCANStatus: -1,
					upCANStatus1: -1,
					safeInputFaultWarning:-1,
					GapDetectionConnectionStatus:-1,
					all6BDoorOpened:-1,
					all8BDoorOpened:-1,
					allDoorLocked:-1,
					open6BDoorFault:-1,
					open8BDoorFault:-1,
					backControlModuleFaultAlarm:-1
				}
				this.systemList[index].downLink = {
					sigComFaultAlarm: -1,
					TIASStatus: -1,
					upCANStatus: -1,
					upCANStatus1: -1,
					safeInputFaultWarning:-1,
					all6BDoorOpened:-1,
					all8BDoorOpened:-1,
					allDoorLocked:-1,
					open6BDoorFault:-1,
					open8BDoorFault:-1,
					backControlModuleFaultAlarm:-1
				}
			}

		}
	}
</script>

<style scoped>
	.bg-top {
		/* height: 12.8vh; */
		min-height: 124px;
		padding: 1.3vh 1.35vw 1.3vh 1.35vw;
		border-radius: 10px;
		background-color: #ffffff;
		margin-bottom: 10px;
	}

	.system {
		display: flex;
		align-items: center;
	}

	.titleText {
		width: 1.1vw;
		font-size: 20px;
		font-weight: 700;
		color: #2A82E4;
		text-align: center;
	}
	.titleText1{
		width: 1.5vw;
		padding-left:0.52vw;
		min-width: 26px;
	}

	.systemFailure {
		display: flex;
		flex-wrap: wrap;
		width: 100%;
		padding: 1.1vh 0 1.1vh 0;
		margin-left: 2.6vw;
	}

	.systemFailure-list {
		display: flex;
		align-items: center;
		width: 15.6vw;
		height: 50%;
		margin-right: 1.56vw;
	}

	.systemFailure-list2 {
		padding: 6px 0 6px 0;
		box-sizing: border-box;
		margin-right: 6px;
		/* height: 50%; */
		display: flex;
		align-items: center;
	}

	.systemFailure-list2 span {
		font-size: 16px;
	}

	.dot {
		display: inline-block;
		width: 1vw;
		height: 1vw;
		margin-right: 0.52vw;
		border-radius: 50%;
		/* background-color: #09D891; */
		/* background-image:radial-gradient(#fff, #09D891,#09D891); */
		background-color: rgba(166, 166, 166, 1);
		min-width: 12px;
		min-height: 12px;
	}

	.dot0,
	.dot1 {
		display: inline-block;
		width: 1vw;
		height: 1vw;
		min-width: 12px;
		min-height: 12px;
		margin-right: 0.52vw;
		border-radius: 50%;
		background-color: rgba(166, 166, 166, 1);
		min-width: 12px;
		min-height: 12px;
	}

	.dot1 {
		background-image: radial-gradient(#fff, rgba(212, 48, 48, 1), rgba(212, 48, 48, 1)) !important;
	}

	.systemFailure-list span {
		font-size: 18px;
	}


	.bg-middle {
		/* height: 25.3vh; */
		/* min-height: 246px; */
		border-radius: 10px;
		background-color: #ffffff;
		margin-top: 1.8vh;
		padding: 18px 26px;
	}

	.upstreamTitleText {
		font-size: 20px;
		color: #2A82E4;
		font-weight: 700;
	}

	.relayBox {
		display: flex;
		justify-content: space-around;
		width: 100%;
		height: 48%;
		margin-top: 43px;
	}

	.relay-list {
		height: 100px;
	}

	.relayListContent {
		/* width: 130px;
        height: 100px; */
		margin: 0 auto;
	}

	.relayListContent p {
		margin: 0;
		font-size: 14px;
		font-weight: 400;
		color: rgba(0, 0, 0, 1);
		text-align: center;
		margin-bottom: 0.5vh;
	}

	.relayListContent-Box1 {
		width: 44px;
		height: 30px;
		line-height: 30px;
		color: #fff;
		border: 1px solid #000;
		border-bottom: hidden;
		margin: 0 auto;
		text-align: center;
	}

	.boxColor1 {
		background-color: #43CF7C;
	}

	.boxColor2 {
		background-color: #D43030;
	}

	.relayListContent-Box2 {
		width: 44px;
		height: 47px;
		line-height: 47px;
		border: 1px solid #000;
		margin: 0 auto;
		text-align: center;
		padding: 0 10px;
	}

	.bg-bottom {
		/* height: 25.3vh; */
		/* min-height: 246px; */
		border-radius: 10px;
		background-color: #ffffff;
		margin-top: 2.1vh;
		padding: 18px 26px;
	}

	.relay-dis {
		display: flex;
		font-size: 14px;
		font-weight: 400;
		color: rgba(0, 0, 0, 1);
		width: 10.4vw;
		margin: 0 auto;
	}

	.relay-dis>>>.relayListContent-Box1 {
		width: 6.9vw;
		height: 2.8vh;
		min-height: 28px;
		margin: auto;
		color: rgba(0, 0, 0, 1);
	}

	.relay-dis>>>.relayListContent-Box1:last-child {
		border-left: none;
	}

	.relayListContent-Box2 {
		width: 10.4vw;
		font-size: 18px;
		font-weight: 700;
		color: rgba(0, 0, 0, 1);
	}

	.tipContent {
		position: fixed;
		top: 0px;
		height: 50px;
		line-height: 50px;
		z-index: 999999;
		width: 50%;
		margin-left: 20%;
		text-align: center;
	}

	.tipsTxt {
		color: red;
		font-weight: 600;
		font-size: 20px;
		width: 250px;
		margin: 0 auto;
	}

	.tipsTxt>>>.marquee-wrap,
	.tipsTxt>>>.scroll {
		height: 50px;
	}

	.tipsTxt>>>.marquee,
	.tipsTxt>>>.copy {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
	}

	.tipsTxt>>>.getWidth {
		margin: 0 !important;
	}

	.relayListContent-Box21 {
		display: flex;
		justify-content: space-around;
	}

	/* 文字滚动 */
	.merquee {
		height: 50px;
		line-height: 50px;
		box-sizing: border-box;
		word-break: break-all;
		white-space: nowrap;
		overflow: hidden;
	}

	.merquee-txt {
		display: inline-block;
		padding-left: 100%;
		/* 从右至左开始滚动 */
		animation: marqueeTransform 16s linear infinite;
	}

	@keyframes marqueeTransform {
		0% {
			transform: translate(0, 0);
		}

		100% {
			transform: translate(-100%, 0);
		}
	}

	.bg2 {
		background-color: #fff;
		border-radius: 10px;
		padding: 2.1vh 1.5vw;
		margin-top: 10px;
		height: 38.1vh;
	}

	.bg4 {
		height: 5vh;
		padding: 0;
		line-height: 5vh;
		padding: 0 1.5vw;
	}

	.bg1 {
		background-color: #fff;
		border-radius: 10px;
		display: flex;
		align-items: center;
		/* height: 83.1vh; */
		/* height: 71vh; */
		padding: 2.1vh 1.5vw;
		margin-top: 10px;
	}

	@media screen and (min-width: 1440px) {
		.systemFailure-list2 {
			margin-right: 10px;
		}
	}

	@media screen and (min-width: 1280px) {
		.systemFailure-list2 {
			margin-right: 6px;
		}
	}

	.systemFailure1 {
		width: 15%;
	}
	.systemFailureDivAll{
		width: 85%;
		display: flex;
		flex-direction: column;
	}

	.systemFailureDiv {
		width: 100%;
		display: flex;
		align-items: center;
	}

	.systemFailureDivSpan {
		width: 85px;
		font-size: 16px;
	}

	.systemFailure2 {
		width: calc(100% - 80px);
		display: flex;
		flex-wrap: wrap;
		border: 1px solid rgba(42, 130, 228, 1);
		border-radius: 8px;
		padding: 0.52vw;
		margin-bottom: 0.52vw;
		align-items: center;
	}
	.systemFailureDiv:last-child .systemFailure2{
		margin-bottom: 0px;
	}
</style>